package com.xiyang.demo.controller;

import com.xiyang.demo.service.FeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping
public class FeinController {

    @Autowired
    private FeignService feignService;

    @GetMapping("/ceshi")
    public void ouhu(Long id) {
        String s = feignService.addId(id);
        System.out.println(s);

    }
}
